<template>
	<view class="bgColor">
		<nacBer>
			<!-- view slot="left-dom">
				fasdg
			</view> -->
		</nacBer>
		<view class="bold">注册类型</view>
		<view class="from_box">
			<u-radio-group
			    v-model="userType"
			    placement="column"
			  >
			    <u-radio
			      :customStyle="{marginBottom: '15px'}"
			      v-for="(item, index) in radiovalue1"
			      :key="index"
			      :label="item.name"
			      :name="item.value"
			    >
			    </u-radio>
			  </u-radio-group>
		</view>
		<view class="login_top_100">
			<u-button @click="nextFun" type="primary">下一步</u-button>
		</view>
	</view>
</template>

<script>
	import nacBer from '@/components/navBar/index'
	import { sysUserType } from '@/api/register.js'
	export default {
		data() {
			return {
				userType: '01',
				radiovalue1: [
					// {
					// 	name: '代表',
					// 	value: '02',
					// },
					{
						name: '代理商',
						value: '01',
					},
				],
				bottonisShow: true,
				passwordShow: false,
				userInfo: {
					name: ''
				},
				rules: {
					name: {
						type: 'string',
						required: true,
						message: '请输入手密码',
						trigger: ['blur', 'change']
					},
				},
			}
		},
		components: {
			nacBer
		},
		onLoad: function (option) { //option为object类型，会序列化上个页面传递的参数 
			this.bottonisShow = false
		},
		methods: {
			passwordShowFun() {
				this.passwordShow = !this.passwordShow
			},
			nextFun() {
				uni.navigateTo({
					url: `/pages/register/index?userType=${this.userType}`
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.from_box {
		width: 100%;
		padding: 0 80rpx;
		box-sizing: border-box;
	}
	.userInfro_flex {
		display: flex;
		width: 100%;
	}
	.login_top_100 {
		border-radius: 100rpx;
		width: 550rpx;
		overflow: hidden;
		margin: auto;
		margin-top: 20%;
	}
	.bold {
		font-size: 50rpx;
		font-weight: bold;
		margin: 50rpx 0 30rpx 50rpx;
	}
	.describe {
		margin-left: 50rpx;
		margin-bottom: 100rpx;
	}
	.ico_right_10 {
		margin-right: 30rpx;
	}
</style>